<template>
  <a-modal v-model="visible" :footer="null" :closable="false" dialogClass="loginModal">
    <div style="font-size: 20px;line-height: 28px;margin-bottom: 8px;">恭喜您，注册成功！</div>
    <div>完成平台用户身份认证可获得更多特权。马上认证：</div>
    <ul>
      <li @click="$refs.DisabilityCertification.visible = true,visible = false">
        <img src="@/assets/image/icon-register1.png" alt="icon">
        <div class="title">残疾人认证</div>
        <div class="explain">认证领好礼</div>
      </li>
      <li @click="$refs.VolunteerCertification.visible = true,visible = false">
        <img src="@/assets/image/icon-register2.png" alt="icon">
        <div class="title">志愿者认证</div>
        <div class="explain">认证领好礼</div>
      </li>
      <li @click="$message.error('暂未开放')">
        <img src="@/assets/image/icon-register3.png" alt="icon">
        <div class="title">企业认证</div>
        <div class="explain">认证领好礼</div>
      </li>
    </ul>

    <!-- 残疾人认证 -->
    <DisabilityCertification ref="DisabilityCertification" />

    <!-- 志愿者认证 -->
    <VolunteerCertification ref="VolunteerCertification" />
  </a-modal>
</template>

<script>
import DisabilityCertification from './DisabilityCertification.vue'
import VolunteerCertification from './VolunteerCertification.vue'
export default {
  components: { DisabilityCertification, VolunteerCertification },
  data(){
    return{
      visible: false,
    }
  },
  methods:{
  },
  created(){
  }
}
</script>

<style lang="less" scoped>
/deep/.loginModal{
  .ant-modal-body{
    padding: 60px;
    padding-bottom: 53px;
  }
  ul{
    display: flex;
    margin-top: 40px;
    flex-direction: row;
    justify-content: space-between;
    li{
      width: 120px;
      height: 144px;
      box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      img{
        width: 48px;
        height: 48px;
        margin-bottom: 11px;
      }
      .title{
        color: #333;
        font-size: 14px;
        line-height: 20px;
      }
      .explain{
        color: #999;
        font-size: 12px;
        margin-top: 8px;
      }
    }
  }
}
</style>
